#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
   string str1;
   cout<<"Please enter a string:"<<endl;
   cin>>str1;
   reverse(str1.begin(),str1.end());
   cout<<str1<<endl;
   system("pause");
}